import request from '@/utils/request'

export function createInspectionOrder(inspectionOrderVo) {
  return request({
    url: '/admin/leaves/inspection-arrival-order/createInspectionOrder',
    method: 'post',
    data: inspectionOrderVo
  })
}

export function deleteInspectionOrder(id) {
  return request({
    url: `/admin/leaves/inspection-arrival-order/deleteInspectionOrder/${id}`,
    method: 'delete'
  })
}

export function updateInspectionOrder(inspectionOrderVo) {
  return request({
    url: '/admin/leaves/inspection-arrival-order/updateInspectionOrder',
    method: 'put',
    data: inspectionOrderVo
  })
}

export function getInspectionOrderList(searchObj) {
  return request({
    url: '/admin/leaves/inspection-arrival-order/getInspectionOrderList',
    method: 'post',
    data: searchObj
  })
}

export function confirmInspectionOrder(id) {
  return request({
    url: `/admin/leaves/inspection-arrival-order/confirmInspectionOrder/${id}`,
    method: 'post'
  })
}

